package com.ego.client;

import com.ego.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Ares
 * @date 2020-12-10
 */
@FeignClient("ItemService")
@RequestMapping("/goods")
public interface GoodsClient {

    @GetMapping("/sku/{id}")
    ResponseEntity<Sku> querySkuById(@PathVariable("id") Long skuId);
}
